<template>
	<view >
		<u-navbar back-text="" :is-back="false" >
			<view class="slot-wrap">
				<u-icon name="arrow-left" size="40" @click="getCurrentPages()"></u-icon>
				<text class="text"></text>
				<view class="custom-icon custom-icon-shouye" @click="backToHomepage()"></view>
			</view>
		</u-navbar>
		
	</view>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		},
		methods:{
			getCurrentPages(){
				uni.navigateBack({					
				    delta: 1,				    
				});
			},
			backToHomepage(){
				uni.switchTab({
				    url: '/pages/index/index'
				});
			}
		}
	}
</script>

<style lang="scss">
	.slot-wrap {
		margin-left: 20rpx;
		width: 192rpx;
		height: 64rpx;
		padding: 10rpx 30rpx;
		border: 1rpx solid #EBEBEB;
		border-radius: 50rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		
		.text{
			width: 1rpx;
			height: 100%;
			background-color: #EBEBEB;
		}
		.custom-icon{
			font-size: 42rpx;
			font-weight: bold;
			color: #0E0E0E;
		}
	}
</style>
